﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SendMail.ascx.cs" Inherits="NCS.Module.CMS.Web.SendMail" %>
<%@ Register Assembly="NCS.Module.MultiLanguage" Namespace="NCS.Module.MultiLanguage.WebControls"
    TagPrefix="cc1" %>
    
<style type="text/css">

    .inputtext{
        border-collapse: collapse;
    }
    
    textarea{
        border-collapse: collapse;
    }
    
</style>
<br />
<br />
<br />
<table align="center" border="0" cellpadding="0" cellspacing="0" width="500px" style="border: 1px solit black;">
    <tr>
        <td></td>
        <td class="text_color7" style="text-align:center;">
            <cc1:MLLabel ID="MLLabel7" runat="server" LanguageKey="SendLinkToFriends">
            </cc1:mllabel>
        </td>
    </tr>
    <tr>
        <td colspan="2" height="10">
        </td>
    </tr>
    <tr>
        <td></td>
        <td class="text_color5" align="left";>
            <asp:Literal ID="lit_mess" runat="server"></asp:Literal>
        </td>
    </tr>
    <tr>
        <td colspan="2" height="10">
        </td>
    </tr>
    <tr>
        <td align="right" class="text_color4" width="227">
            <cc1:MLLabel ID="MLLabel1" runat="server" LanguageKey="SenderName">
            </cc1:MLLabel>
        </td>
        <td style="width:330px;">
            <asp:TextBox Width="280" ID="txtfrom" runat="server" CssClass="text_color5 inputtext input_name"
                TextMode="SingleLine"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtfrom"
                ErrorMessage="*">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td colspan="2" height="10">
        </td>
    </tr>
    <tr>
        <td align="right" class="text_color4" width="227">
            <cc1:MLLabel ID="MLLabel2" runat="server" LanguageKey="SenderMail">
            </cc1:MLLabel>
        </td>
        <td style="width: 330px;">
            <asp:TextBox ID="txt_fromEmail" runat="server" CssClass="text_color5 inputtext input_name"
                TextMode="SingleLine" Width="280"></asp:TextBox>
            <asp:RegularExpressionValidator ID="Regularexpressionvalidator1" runat="server" ControlToValidate="txt_fromEmail"
                Display="Dynamic" ErrorMessage="Địa chỉ Email không hợp lệ" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_fromEmail"
                ErrorMessage="*">*</asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td colspan="2" height="10">
        </td>
    </tr>
    <tr>
        <td align="right" class="text_color4" width="227">
            <cc1:MLLabel ID="MLLabel3" runat="server" LanguageKey="ReceiverName">
            </cc1:MLLabel>
        </td>
        <td style="width: 330px;">
            <asp:TextBox ID="txt_name" runat="server" CssClass="text_color5 inputtext input_name"
                TextMode="SingleLine" Width="280"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txt_name"
                ErrorMessage="*">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td colspan="2" height="10">
        </td>
    </tr>
    <tr>
        <td align="right" class="text_color4" width="227">
            <cc1:MLLabel ID="MLLabel4" runat="server" LanguageKey="ReceiverMail">
            </cc1:MLLabel>
        </td>
        <td style="width: 330px;">
            <asp:TextBox ID="txt_email" runat="server" CssClass="text_color5 inputtext input_name"
                TextMode="SingleLine" Width="280"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txt_email"
                ErrorMessage="*">*</asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txt_email"
                Display="Dynamic" ErrorMessage="Địa chỉ Email không hợp lệ" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
        </td>
    </tr>
    <tr>
        <td colspan="2" height="10">
        </td>
    </tr>
    <tr>
        <td align="right" class="text_color4" width="227">
            <cc1:MLLabel ID="MLLabel5" runat="server" LanguageKey="ContentMail">
            </cc1:MLLabel>
        </td>
        <td style="width: 330px;">
            <asp:TextBox ID="txt_comment" runat="server" CssClass="text_color5 inputtext input_area"
                Rows="8" TextMode="MultiLine" Width="280"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td colspan="2" height="10">
        </td>
    </tr>
    <tr>
        <td></td>
        <td>
            <asp:Button ID="but_comment" runat="server" CssClass="button_submit" OnClick="but_comment_Click"
                Text="Gửi đi" />
            <asp:Button ID="btnReset" runat="server" OnClick="btnReset_Click" Text="Soạn lại" />
        </td>
    </tr>
</table>        